﻿@{
   ViewBag.Title = "Index";
}

<h2>Tabla de ALUMNOS</h2>

<table>
   <thead>
       <tr>
           <th>Nombre</th>
           <th>Apellido</th>
           <th>Legajo</th>
       </tr>
   </thead>
   <tbody>
       @foreach (var item in Model)
       {
       <tr>
           <td>@item.Nombre</td>
           <td>@item.Apellido</td>
           <td>@item.Legajo</td>
       </tr>
       }
   </tbody>
   <tfoot>
       <tr>
           <td colspan="3"><div style="text-align: center">Total: @Model.Count</div></td>
       </tr>
   </tfoot>
</table>

<a href="@Url.Action("Agregar")">Agregar</a>